package com.topisv.tms.utils.mail;

public class Test {
	
	public static void main(String[] args){ 
 
     MailSenderInfo mailInfo = new MailSenderInfo();  
 
     mailInfo.setMailServerHost("smtp.126.com");    
     mailInfo.setMailServerPort("25");    
     mailInfo.setValidate(true); 
     
     mailInfo.setUserName("chenchendefeng@126.com");  
     mailInfo.setPassword("111111");   
     
     mailInfo.setFromAddress("chenchendefeng@126.com");    
     mailInfo.setToAddress("chenchendefeng@126.com".split(","));    
     mailInfo.setSubject("test");    
     mailInfo.setContent("testtest.....");    
         
     SimpleMailSender sms = new SimpleMailSender();   
         sms.sendTextMail(mailInfo); 
//         sms.sendHtmlMail(mailInfo); 
   }  

}
